package cn.iocoder.yudao.module.liveprice.framework.kafka;

import cn.iocoder.yudao.module.liveprice.service.message.PriceMessageDispatcher;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 价格Kafka消息消费者
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class PriceKafkaConsumer {

    private final PriceMessageDispatcher messageDispatcher;

//    @KafkaListener(topics = "${yudao.liveprice.kafka.topics}")
//    public void consumePriceMessage(String message) {
//        log.info("接收到价格消息: {}", message);
//        messageDispatcher.dispatch(message);
//    }
} 